[
    {
        "h2": "Accessibility Support"
    },
    {
        "p": "Out of the box, the Telerik and Kendo UI Segmented Control provides extensive accessibility support and enables users with disabilities to acquire complete control over its features."
    },
    {
        "p": "The Segmented Control is compliant with the [Web Content Accessibility Guidelines (WCAG) 2.2 standards](https://www.w3.org/TR/WCAG22/) and [Section 508](http://www.section508.gov/) requirements, follows the [Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA)](https://www.w3.org/WAI/ARIA/apg/) best practices for implementing the [keyboard navigation](#keyboard-navigation) for its `component` role, provides options for [managing its focus](#managing-the-focus) and is tested against the most popular [screen readers](#screen-readers)."
    },
    {
        "h3": "WAI-ARIA"
    },
    {
        "p": "This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any."
    },
    {
        "h4": "Segmented Control Component"
    },
    {
        "p": "The Segmented Control is a selection component that allows users to choose between mutually exclusive options. It functions as a group of toggle buttons, with a visual indicator (thumb) that slides to highlight the selected option."
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-segmented-control`",
                    "Attribute": "`role=group`",
                    "Usage": "Sets the proper role for the group of buttons."
                }
            ]
        }
    },
    {
        "h4": "Segmented Control Buttons"
    },
    {
        "p": "Each button within the segmented control represents a selectable option."
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-segmented-control-button`",
                    "Attribute": "`role=button` or `nodeName=button`",
                    "Usage": "Each button must have the appropriate button role."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label`",
                    "Usage": "Each button should be properly labelled. Use `aria-label` if the button contains only an icon without text."
                },
                {
                    "Selector": "`.k-segmented-control-button.k-selected`",
                    "Attribute": "`aria-pressed=true`",
                    "Usage": "Only the selected button within the group will have this attribute set to true."
                },
                {
                    "Selector": "`.k-segmented-control-button.k-disabled`",
                    "Attribute": "`aria-disabled=true`",
                    "Usage": "Indicates that the button is disabled and cannot be interacted with."
                }
            ]
        }
    },
    {
        "h4": "Visual Selection Indicator (Thumb)"
    },
    {
        "p": "The thumb is a visual element that slides to indicate the selected button. It should be hidden from assistive technologies."
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-segmented-control-thumb`",
                    "Attribute": "`aria-hidden=true`",
                    "Usage": "The thumb is purely decorative and should be hidden from screen readers."
                }
            ]
        }
    },
    {
        "h4": "Button Component"
    },
    {
        "link": {
            "title": "Button accessibility specification",
            "source": "{{button_a11y_link}}"
        }
    },
    {
        "h3": "Managing the Focus"
    },
    {
        "p": "All of the buttons in the Segmented Control are focusable by default, and follow the regular tab order of the page."
    },
    {
        "h3": "Keyboard Navigation"
    },
    {
        "p": "The Segmented Control supports the following keyboard shortcuts:"
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Tab`",
                    "Behavior": "Focuses the next button in the control. If the focus is on the last button, focuses the next focusable element on the page."
                },
                {
                    "Shortcut": "`Shift` + `Tab`",
                    "Behavior": "Focuses the previous button in the control. If the focus is on the first button, focuses the previous focusable element before the Segmented Control."
                },
                {
                    "Shortcut": "`Enter` or `Space`",
                    "Behavior": "Activates the focused button and selects it."
                }
            ]
        }
    },
    {
        "h3": "Testing"
    },
    {
        "p": "The Segmented Control has been extensively tested automatically with [axe-core](https://github.com/dequelabs/axe-core) and manually with the most popular screen readers."
    },
    {
        "h3": "Screen Readers"
    },
    {
        "p": "The Segmented Control has been tested with the following screen readers and browsers combinations:"
    },
    {
        "table": {
            "headers": [
                "Environment",
                "Tool"
            ],
            "rows": [
                [
                    "Firefox",
                    "NVDA"
                ],
                [
                    "Chrome",
                    "JAWS"
                ],
                [
                    "Microsoft Edge",
                    "JAWS"
                ]
            ]
        }
    },
    {
        "h3": "Resources"
    },
    {
        "ul": [
            {
                "link": {
                    "source": "https://www.w3.org/TR/wai-aria-1.2/#button",
                    "title": "WAI-ARIA `button` Role Specification"
                }
            },
            {
                "link": {
                    "source": "https://www.w3.org/TR/wai-aria-1.2/#group",
                    "title": "WAI-ARIA `group` Role Specification"
                }
            }
        ]
    }
]